package com.startupwebapp.services;

import java.util.List;

import com.startupwebapp.core.domain.users.Person;
import com.startupwebapp.core.domain.users.PersonRole;

public interface PersonService {
	public void changeRoles(Integer personId, List<PersonRole> roles);

	public void setPersonState(Integer personId, boolean stateCode);

	public Person findPersonById(Integer personId);

	public List<Person> findAll();

	public List<Person> findByActiveState(boolean state);

	public Person findByLogin(String login);

	public void savePerson(Person person);

	public String getCurrentLoggedInUserName();

	public int countAll();

	public int count(boolean state);

	public List<Person> get(int first, int amount);

}